//
//  QDDisComplicationCell.m
//  QuickDoctor
//
//  Created by 李伟 on 2016/12/23.
//  Copyright © 2016年 Eric. All rights reserved.
//

#import "QDDisComplicationCell.h"
#import "QDDisComplicationModel.h"
@interface QDDisComplicationCell()


@end
@implementation QDDisComplicationCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

//model的set方法
-(void)setModel:(QDDisComplicationModel *)model
{
    _model = model;
    _lb_disComName.text = model.complication_name;
    _btn_order.selected = model.isSelected;
}


//点击订阅按钮
- (IBAction)clickOrderBtn:(UIButton *)sender {
    
    self.model.isSelected = !self.model.isSelected;
    self.btn_order.selected = self.model.isSelected;
}

@end
